package com.demo.web.controllers;

import com.demo.model.db1.WfStaffDAO;
import com.demo.model.db1.WfStaffVO;
import org.apache.ibatis.solon.annotation.Db;
import org.noear.solon.annotation.*;

@Controller
public class StaffController {

    @Db("db1")
    @Inject
    WfStaffDAO wfStaffDAO;


    @Get
    @Mapping(value = "/staff/{staffid}")
    public WfStaffVO getStaff(@Param(name = "staffid") String staffid) {
        return wfStaffDAO.selectById(staffid);
    }
}
